#ifndef TAPE_H_
#define TAPE_H_
#include "publication.h"
#include <iostream>
class Tape : public Publication {
private:
  long int playtime; // second
public:
  Tape(const std::string &title, const std::string &name, double price,
       long int date)
      : Publication(title, name, price, date), playtime(0) {}
  Tape(const Publication &pc) : Publication(pc), playtime(0) {}
  ~Tape() {}
  Tape(const Publication &pc, int playtime)
      : Publication(pc), playtime(playtime) {}
  void setPlaytime(int playtime) { this->playtime = playtime; }
  int getPlaytime() { return playtime; }
  void inputData() {
    Publication::inputData();
    std::cout << "input playtime:" << std::endl;
    std::cin >> playtime;
  }
  void display() {
    Publication::display();
    std::cout << "playtime: " << playtime << std::endl;
  }
};
#endif